package com.gaber.Interfaces;

/**
 * @author gaber
 * @date 2023/7/11 17:45:43
 * @description 接口的实现类
 */
public class MammalInt implements Animal{
    @Override
    public void eat() {
        System.out.println("Mammal eats");
    }

    @Override
    public void travel() {
        System.out.println("Mammal travel");
    }

    public int noOfLegs() {
        return 0;
    }

    public static void main(String[] args) {
        MammalInt m = new MammalInt();
        m.eat();
        m.travel();
        m.noOfLegs();
    }
}
